package com.jsyl.entity.common;

import java.io.Serializable;

import com.jsyl.entity.common.orm.annotation.Column;
import com.jsyl.entity.common.orm.annotation.Entity;
import com.jsyl.entity.common.orm.annotation.Id;

/**
 * 区域字典表
 * @author song
 *
 */
@Entity(table = "SYS_AREA")
public class Area extends BaseEntity implements Serializable {
	   
	private static final long serialVersionUID = -5180662092376667993L;
	 @Id
	 @Column("ID")
	 private int id;
	 /*地区名称*/
	 @Column("NAME")
	 private String name;
	 /*地区标识*/
	 @Column("NID")
	 private String nid;
	/* 所属父ID*/
	 @Column("PID")
	 private int pid;
	 /*序号*/
	 @Column("ORDERS")
	 private int orders;
	 
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNid() {
		return nid;
	}

	public void setNid(String nid) {
		this.nid = nid;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getOrders() {
		return orders;
	}

	public void setOrders(int orders) {
		this.orders = orders;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return id;
	}

}
